package compound.pattern;import compound.duck.DuckCall;import compound.duck.MallardDuck;import compound.duck.RedHeadDuck;import compound.duck.RubberDuck;/** * Created by Administrator on 2018-11-8. */public class DuckFactory extends AbstractDuckFactory {    public Quackable createMallardDuck() {        return new MallardDuck();    }    public Quackable createRedheadDuck() {        return new RedHeadDuck();    }    public Quackable createDuckCall() {        return new DuckCall();    }    public Quackable createRubberDuck() {        return new RubberDuck();    }}